package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //添加预约设置
    void addOrderSetting(OrderSetting orderSetting);

    //更改预约设置
    void editNumberByOrderDate(OrderSetting orderSetting);

    //根据日期查询当天是否进行过预约设置
    long findCountByOrderDate(Date date);

    //根据月份查询相应的预约设置数据
    List<OrderSetting> findOrderSettingByMonth(Map map);

    //根据日期查询该天是否设置过预约设置
    OrderSetting findByOrderDate(Date date);

    //预约成功，更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
